var oaddwin=document.getElementById("addwin")//获取打开按钮
oaddwin.onclick=function open(){
    document.getElementById("background").style.display='block'//用display属性来控制div的显示情况
    document.getElementById("float_background").style.display="block"
}
var abtn2=document.getElementById("login_button")//获取关闭按钮
abtn2.onclick=function close(){
    document.getElementById("background").style.display=('none')
    document.getElementById("float_background").style.display=("none")
}
const sign_in_btn = document.querySelector("#sign-in-btn");
const sign_up_btn = document.querySelector("#sign-up-btn");
const container = document.querySelector(".container");

sign_up_btn.addEventListener("click", () => {
    container.classList.add("sign-up-mode");
    sessionStorage.setItem("CurrentPage","root");
});

sign_in_btn.addEventListener("click", () => {
    container.classList.remove("sign-up-mode");
    sessionStorage.setItem("CurrentPage","student");
});
if (performance.navigation.type == 1) {

}
